<?php
require '../nette.min.php';
Nette\Diagnostics\Debugger::enable();
Nette\Diagnostics\Debugger::$strictMode = TRUE;
require '../loader.php';

/**
 * @property-read int $id
 * @property string $jmeno
 * @property int $vek
 */
class Osoba extends WDB\Structure\Structure {}

$osoba = new Osoba(array('id'=>1, 'jmeno'=>'Jan Novák'));
$osoba->vek = 18;
echo "{$osoba->id}: {$osoba->jmeno}, {$osoba->vek}"; //1: Jan Novák, 18
$osoba->id = 0;